package com.hmo.study;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.Button;
import android.widget.LinearLayout;

import com.hmo.study.dialog.TipsDialog;

public class MainActivity extends AppCompatActivity {
    private LinearLayout linear;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        linear = findViewById(R.id.linear);
        Button button = new Button(getBaseContext());
        button.setText("问号邂逅");
        button.setOnClickListener(v -> {
            new TipsDialog(this,"邂逅帮助",getString(R.string.audio_match_help),"我知道了").show();
        });
        linear.addView(button);
    }
}